Through the introduction of a bad article, you know, Ziparchive class represents a Zip document instance, in addition to using the method listed in the previous article to read and write the zip file, you can also directly through the Ziparchive
To operate on a ZIP file, the following three classes are used primarily:1, ZipFile. Represents a class associated with a zip file operation. You can use this class to create a zip file or to open a zip file.2, Ziparchive. Represents a Zip document
This occurs when the zip file created under WIN is decompressed in linux, and the Chinese path and file name are garbled, so I wrote a script to convert the file name in the zip file. However, if the zip file is created in the WIN system of Japanese,
It originated in the zip created under win under Linux decompression, Chinese path and file name will be garbled, so I wrote a script to convert the code inside the zip file name. However, if it is a zip created under the Japanese, Korean, or
This extension allows you to read and write the zip archive transparently and the files inside them.
After PHP5.2, in order to use these functions, you must use the--enable-zip configuration option to provide zip support when compiling PHP.
Example
The usage is as follows:
Create/Add a zip packageZipArchive * zipFile = [[ZipArchive alloc] init];// For zipfilename, a complete path is required, for example, ***/Documents/demo.zip.[ZipFile CreateZipFile2: @ "zipfilename"];// There are two
Introduction:
You may have encountered this situation. After downloading a zip file from the network, you finally find that it is password-protected. Or you can use your own password to encrypt a very important ZIP file. However, after a while, you
Compression, decompression is the daily work of the two common operations, for Windows platform, the most commonly used format is zip and rar, most of the domestic use of RAR, most of the foreign is using zip.
For Unix-like platforms, the commonly
If you want to create a set of documents, such as a form letter or an address label page that you send to multiple customers, you can use a mail merge. Each letter or label contains the same type of information, but the content varies. For example,
From: http://hi.baidu.com/jorling/blog/item/13db7bec1c38a1d32e2e21d3.html
File compression and Archiving
Sometimes, we need to store a group of files into one for backup or transmission to another directory or even another computer. Sometimes, we
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.